class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        dic = dict()
        for index,num in enumerate(nums):
            couple = target - num
            if couple in dic:
                return [dic[couple],index]
            else:
                dic[num] = index
        return []
